package com.beyondsoft;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//开启异步
@EnableAsync
//服务注册
@EnableDiscoveryClient
//有这个注解才可以调用远程
@EnableFeignClients
//启动注解事务
@EnableTransactionManagement
//扫描包
@MapperScan("com.beyondsoft.users.dao")
public class UsersApplication {

    public static void main(String[] args) {
        SpringApplication.run(UsersApplication.class, args);
    }
}
